<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件上传与下载测试</title>
</head>
<body>
<%=basePath %>


	<form action="<%=basePath %>UploadServlet" method="post" enctype="multipart/form-data">
		描述:<input type="text" name="desc">
		描述2:<input type="text" name="desc2">
		文件：<input type="file" name="fileName">
		文件2：<input type="file" name="fileName2">
		<input type="submit" value="保存">
	</form>
		<form action="<%=basePath %>DownloadServlet" method="post" >
		<input type="submit" value="下载">
	</form>
</body>
</html>